package com.atguigu.common.exception;

/**
 * @author ：TJH
 * @date ：Created in 2020/7/6 22:32
 * @description：
 */
public class NoStockException extends RuntimeException {

    private long skuId;

    public NoStockException(Long skuId) {
        super("商品id:" + skuId + "，没有足够的库存了");
    }

    public NoStockException(String msg) {
        super(msg);
    }

    public long getSkuId() {
        return skuId;
    }

    public void setSkuId(long skuId) {
        this.skuId = skuId;
    }
}
